class AttackController extends BlockController;

var float StartSeconds;
var float WeaponCooldown;

DefaultProperties
{
	WeaponCooldown = 1.5; //in seconden
}

auto state Attack
{
	Begin:
		`log('attack');
		if( WorldInfo.TimeSeconds >= (StartSeconds+WeaponCooldown)){
			//LookAtPlayer();
			//AttackPlayer();
			Pawn.StartFire(0);
			Pawn.StopFire(0);
			StartSeconds = WorldInfo.TimeSeconds;
		}
		Done();
}

function bool CanAttack()
{
	return (WorldInfo.TimeSeconds >= (StartSeconds+WeaponCooldown));
}

function Done()
{
	//Geef aan klaar te zijn met de state
}
